<?php
/*
Template Name: single image
*/
?>




<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>
<?php get_header(); ?>


<div class="main_page">

	<div class="main_left_single">
	
				<div class="mediasingle_item">						

						<div id="singlegallery">
					<?php while (have_posts()) : the_post(); 
					if ($images = get_children(array(
						'post_parent' => $post->ID,
						'numberposts' => '1',
						'post_type' => 'attachment',
						'post_mime_type' => 'image',
						'order' => 'ASC',
						'orderby' => 'menu_order')))  
					 foreach($images as $image) {  
						$exehill_image = $image->guid; 
						} ?>	
						 
						 <div class="singleimage_solo" style="background:url(<?php echo $exehill_image; ?>) no-repeat; ">
						 <a onmouseover="Tip('Open Image')" onmouseout="UnTip()" rel="lightbox[boxset]"   href="<?php echo $exehill_image; ?>"></a>
						 </div>
						
						
						
			</div> 
					
		</div>
		
		<div class="main_left_top"><?php the_title(); ?>
		</div>
		
		<div class="imagesingle_text">
		
		
		<div><?php the_content(); ?>
		
		</div>
	  
	    <div class="post_single_footer"><span class="post_time"><?php the_time('M j, Y') ?></span><span class="post_single_tags"><?php echo get_the_tag_list( '',' - '); ?></span>
		</div>	

			
		<div class="imagesingle_comments">
		<?php comments_template(); ?>
		</div>
		
	</div>
	
	<div class="main_left_bottom">
	</div>

</div>
	<?php endwhile; ?>

<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dbx_init_2.js"></script>

<div class="main_right">
	<?php get_sidebar(); ?>
</div>
	
	<div class="clear">
	</div>
	
</div>

<?php get_footer(); ?>
